package club.janna.rpcdemo.client.invoke;

import club.janna.rpcdemo.domain.Request;
import club.janna.rpcdemo.domain.Response;
import club.janna.rpcdemo.domain.ServiceInfo;

/**
 * 网络调用者
 */
public interface NetInvoker {
    /**
     * 调用接口
     * @param request
     * @return
     */
    Response invoke(ServiceInfo serviceInfo, Request request);
}
